<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Flex容器属性-align-content</title>
    <link rel="stylesheet" href="./reset.css">
    <style>
        .flex-container {
            display:flex;
          height: 150px;
          /*子元素在交叉轴上的对齐模式*/
          align-items: baseline;
          align-items: stretch;
          /*垂直居中begin*/
          justify-content: center;
          align-items: center;
          /*垂直居中end*/
        }

        .flex-item {
          height: 60px;
        }

        .flex-item:nth-child(1){
          font-size: 18px;
          background: yellow;
        }
        .flex-item:nth-child(2){
          font-size: 24px;
          background: green;
        }
        .flex-item:nth-child(3){
          font-size: 30px;
          background: pink;
        }
        .flex-item:nth-child(4){
          font-size: 14px;
          background: red;
        }
    </style>
</head>
<body>
    <div class="flex-container">
        <div class="flex-item">A</div>
        <div class="flex-item">B</div>
        <div class="flex-item">C</div>
        <div class="flex-item">D</div>
    </div>
</body>
</html>
